all: ex1_server sc tester dummyTest

clean:
	rm ex1_server stackServer.o sc stackClient.o dequeue.o tester stackTester.o dummyTest.o dummyTest

ex1_server: stackServer.o dequeue.o
	g++ -o ex1_server stackServer.o dequeue.o -lpthread

stackServer.o: stackServer.cpp
	g++ -Wall -lpthread -ltbb -c stackServer.cpp

dequeue.o:
	g++ -Wall -lpthread -ltbb -c Libs/dequeue.cpp

sc: stackClient.o
	g++ -o sc stackClient.o -lpthread

stackClient.o: stackClient.cpp
	g++ -Wall -lpthread -ltbb -c stackClient.cpp

tester: stackTester.o
	g++ -o tester stackTester.o

stackTester.o: stackTester.cpp
	g++ -Wall -c stackTester.cpp

dummyTest: dummyTest.o
	g++ -o dummyTest dummyTest.o -lpthread

dummyTest.o: dummyTest.cpp
	g++ -Wall -c dummyTest.cpp
